package com.qifan.energy.bean.entity;

import com.chad.library.adapter.base.entity.MultiItemEntity;
import com.qifan.energy.bean.result.OrderItem;

public class OrderAllMultiItemEntity implements MultiItemEntity {

    public static final int ALL = 1; //全部
    public static final int DAIFU = 2; //待付款
    public static final int DAIFA = 3; //待发货
    public static final int DAISHOU = 4; //待收货
    public static final int CLOSE = 5; //已关闭
    private int itemType; // 附加字段方便处理所需逻辑
    private OrderItem orderItem;  // 主体数据实体类型

    public OrderItem getOrderItem() {
        return orderItem;
    }

    public void setOrderItem(OrderItem orderItem) {
        this.orderItem = orderItem;
    }

    public OrderAllMultiItemEntity(int itemType, OrderItem orderItem) {
        this.itemType = itemType;
        this.orderItem = orderItem;
    }

    @Override
    public int getItemType() {
        return itemType;
    }
}
